#include "usrappwnd.h"
#include "ui_usrappwnd.h"
#include "aboutdialog.h"

#include<QScreen>

UsrAppWnd::UsrAppWnd(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::UsrAppWnd)
{
    ui->setupUi(this);
    ui->mainVLayout->setContentsMargins(0,0,0,0);
    ui->mainToolBar->hide();

    this->setWindowTitle(u8"NB串口升级工具(LPC804)");

    QScreen *screen=QGuiApplication::primaryScreen();
    QRect mm=screen->availableGeometry() ;
    this->setFixedSize(mm.width()/2, mm.height() * 3 / 4);
}

UsrAppWnd::~UsrAppWnd()
{
    delete ui;
}

void UsrAppWnd::on_aboutAction_triggered(bool checked)
{
    checked = checked;

    AboutDialog dlg;

    dlg.exec();
}

